home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 201-225 / disk_217 / stevie / regexp.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  1KB  |  37 lines

  1. /*
  2.  * NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
  3.  *
  4.  * This is NOT the original regular expression code as written by
  5.  * Henry Spencer. This code has been modified specifically for use
  6.  * with the STEVIE editor, and should not be used apart from compiling
  7.  * STEVIE. If you want a good regular expression library, get the
  8.  * original code. The copyright notice that follows is from the
  9.  * original.
  10.  *
  11.  * NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
  12.  *
  13.  * Definitions etc. for regexp(3) routines.
  14.  *
  15.  * Caveat:  this is V8 regexp(3) [actually, a reimplementation thereof],
  16.  * not the System V one.
  17.  */
  18. #define NSUBEXP  10
  19. typedef struct regexp {
  20.     char           *startp[NSUBEXP];
  21.     char           *endp[NSUBEXP];
  22.     char            regstart;    /* Internal use only. */
  23.     char            reganch;    /* Internal use only. */
  24.     char           *regmust;    /* Internal use only. */
  25.     int             regmlen;    /* Internal use only. */
  26.     char            program[1];    /* Unwarranted chumminess with compiler. */
  27. }               regexp;
  28.  
  29. extern regexp  *regcomp();
  30. extern int      regexec();
  31. extern void     regsub();
  32. extern void     regerror();
  33.  
  34. #ifndef    ORIGINAL
  35. extern int      reg_ic;        /* set non-zero to ignore case in searches */
  36. #endif
  37.